package com.boomsecret.pattern.decorator;

/**
 * Created by wangjinliang on 2018/1/26.
 */
public class SugarCoffee extends DecoratorCoffee {
    public SugarCoffee(DecoratorCoffee decoratorCoffee) {
        super(decoratorCoffee);
    }

    @Override
    public int getPrice() {
        return super.getPrice() + 2;
    }

    @Override
    public String getName() {
        return "Sugar + " + super.getName();
    }
}
